package com.my.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("enterprise_space")
public class EnterpriseSpace {
    private Integer creator;
    @TableId(value = "space_no",type = IdType.AUTO)
    private Integer spaceNo;
    private String spaceName;
    private Date createTime;

    public EnterpriseSpace(Integer creator, String spaceName) {
        this.creator = creator;
        this.spaceName = spaceName;
    }
}
